/*
 * @Author: windys
 * @Description: 
 * @Date: 2022-02-14 13:58:30
 */

import { DatetimePicker ,SubmitBar ,Switch,Cascader, Card, Area, AddressList, ImagePreview, PullRefresh, Checkbox, CheckboxGroup, Image as VanImage, Pagination, Empty, Tabbar, TabbarItem, Collapse, CollapseItem, Rate, Loading, ConfigProvider, NumberKeyboard, Popup, Picker, Uploader, Form, RadioGroup, Radio, Tab, Tabs, Overlay, ActionSheet, Dialog, List, Toast, Lazyload, Button, Icon, Field, CellGroup, Divider, Cell, Grid, GridItem, Badge, NavBar, Swipe, SwipeItem, Tag, Sticky } from 'vant';

const components = [
    DatetimePicker ,SubmitBar ,  Switch,Cascader, Card, Area, AddressList, ImagePreview, PullRefresh, Checkbox, CheckboxGroup, Pagination, Empty, Tabbar, TabbarItem, Collapse, CollapseItem, Rate, Loading, VanImage, ConfigProvider, NumberKeyboard, Popup, Picker, Uploader, Form, RadioGroup, Radio, Tab, Tabs, Overlay, ActionSheet, Dialog, List, Toast, Lazyload, Button, Icon, Field, CellGroup, Divider, Cell, Grid, GridItem, Badge, NavBar, Swipe, SwipeItem, Tag, Sticky
]



// 自动注册全局组件
export default {
    install(App) {
        components.forEach((comp) => {
            App.use(comp);
        });
        return App;
    },
};
